/** @file               sw_const.h
 *  @copyright          Copyright (C) 2006-2026 flyfish (tenggui_fu@126.com)
 *  @brief              This file is part of the swallow library
 *  @author             $Author: Thinkpad $
 *  @version            $Rev: 364 $
 *  @date               $Date: 2016-10-27 14:29:41 +0800 (周四, 27 10月 2016) $
 */
#ifndef __SW_CONST_H__
#define __SW_CONST_H__

#ifdef __cplusplus
extern "C" {
#endif

#if 1
    #define SW_PATH_MAX     512
    #define SW_LINE_MAX     1024
    #define SW_PAGE_SIZE    4096
    #define SW_NAME_MAX     128
#else
#ifdef PATH_MAX
    #define SW_PATH_MAX     PATH_MAX
#elif defined(MAX_PATH)
    #define SW_PATH_MAX     MAX_PATH
#else
    #define SW_PATH_MAX     512
#endif

#ifdef LINE_MAX
    #define SW_LINE_MAX     LINE_MAX
#elif defined(MAX_LINE)
    #define SW_LINE_MAX     MAX_LINE
#else
    #define SW_LINE_MAX     1024
#endif

#ifdef PAGE_SIZE
    #define SW_PAGE_SIZE    PAGE_SIZE
#else
    #define SW_PAGE_SIZE    4096
#endif

#ifdef NAME_MAX
    #define SW_NAME_MAX     NAME_MAX
#elif defined(MAX_NAME)
    #define SW_NAME_MAX     MAX_NAME
#else
    #define SW_NAME_MAX     128
#endif
#endif

#ifdef __cplusplus
}
#endif

#endif

